﻿using System;

namespace diantou.web.ajax.admin
{
    /// <summary>
    /// 支付相关产品
    /// </summary>
    [fastCSharp.code.cSharp.ajax(IsPool = true)]
    class payProduct : adminHandle<payProduct>
    {
        /// <summary>
        /// 添加产品
        /// </summary>
        /// <param name="value"></param>
        /// <param name="onReturn"></param>
        public void Append(diantou.dataAccess.payProduct value, Action<fastCSharp.net.returnValue<int>> onReturn)
        {
            diantou.dataAccess.tcpCall.payProduct.append(value, onReturn);
        }
        /// <summary>
        /// 修改产品
        /// </summary>
        /// <param name="value"></param>
        /// <param name="onReturn"></param>
        public void Rework(diantou.dataAccess.payProduct value, Action<fastCSharp.net.returnValue<bool>> onReturn)
        {
            diantou.dataAccess.tcpCall.payProduct.rework(value, onReturn);
        }
        /// <summary>
        /// 生成产品二维码图片
        /// </summary>
        /// <param name="type"></param>
        /// <param name="parameter"></param>
        /// <param name="isOver">是否覆盖已有图片</param>
        /// <returns></returns>
        public string CreateQrCodeImage(diantou.dataModel.payProduct.productType type, int parameter, bool isOver)
        {
            return diantou.dataAccess.tcpCall.payProduct.CreateQrCodeImage(type, parameter, isOver);
        }
    }
}
